using Android.App;
using Android.Content;
using Android.OS;
using MvvmCross.Droid.Views;
using MvvmCross.Binding.Droid.Views;
using MvvmCross.Binding.Droid.BindingContext;
using Android.Util;

namespace FinancialBook.Droid.Views
{
    [Activity(Label = "List transaction")]
    public class TransactionView : MvxActivity
    {
        protected override void OnCreate(Bundle savedInstanceState)
        {
            base.OnCreate(savedInstanceState);
            SetContentView(Resource.Layout.TransactionListView);
        }
    }

    public class TransactionList : MvxListView
    {
        public TransactionList(Context context, IAttributeSet attrs) :
            base(context, attrs, new TransactionyAdapter(context))
        {
        }
    }

    class TransactionyAdapter : MvxAdapter
    {
        //CategoryView categoryView;

        public TransactionyAdapter(Context context, IMvxAndroidBindingContext BindingContext)
                : base(context, BindingContext)
        {

        }
        public TransactionyAdapter(Context context)
                : base(context, MvxAndroidBindingContextHelpers.Current())
        {

        }

        protected override global::Android.Views.View GetBindableView(global::Android.Views.View convertView, object dataContext, int templateId)
        {
            return base.GetBindableView(convertView, dataContext, Resource.Layout.TransactionItemView);
        }
    }
}